/*
 * @Author: delin66
 * @Date: 2024-12-10 16:19:23
 * @LastEditors: delin66
 * @LastEditTime: 2024-12-10 16:27:58
 * @Descripttion:
 */
import request from './request';

//获取奖项列表
export function getAwardList(params:any) {
  return request({
    url: '/kjy/enterprise-qualification-awards/list',
    method: 'get',
    params: params,
  });
}
// 获取自己的奖项列表
export function getAwardListByEnterpriseId(params:any) {
  return request({
    url: '/kjy/enterprise-qualification-awards/listByUserId',
    method: 'get',
    params
  });
}
//新增获奖
export function addInfo(data:any) {
  return request({
    url: '/kjy/enterprise-qualification-awards/',
    method: 'post',
    data: data,
  });
}
//修改获奖
export function updateInfo(data:any) {
  return request({
    url: '/kjy/enterprise-qualification-awards/',
    method: 'put',
    data: data,
  });
}
// 删除获奖
export function delInfo(id:any) {
  return request({
    url: '/kjy/enterprise-qualification-awards/' + id,
    method: 'delete',
  });
}

// 获取获奖类型
export function getAwardType() {
  return request({
    url: '/system/dict/data/type/sys_award_type',
    method: 'get',
  });
}
